import QtQuick
import QtQuick.Controls

MenuBar {
    Menu {
        title: "文件"
        MenuItem { text: "新建"; onTriggered: console.log("新建文件") }
        MenuItem { text: "打开" }
        Menu {
            title: "最近打开"
            MenuItem { text: "文档1.qml" }
            MenuItem { text: "项目2.pro" }
        }
    }
}
